#!/usr/bin/python
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic import simple

urlpatterns = patterns('',
    url(r'^$', 'contact.web.views.index'),
    url(r'^visit/$', 'contact.web.views.visit'),
    url(r'^info/', include('contact.web.info.urls')),
    url(r'^soft/', include('contact.web.soft.urls')),
#    (r'^metaweblog/?$', 'contact.core.xmlrpc.view', {'module': 'contact.web.metaweblog'}),
#    (r'^getftpip', 'views.get_ftpip'),
#    
#    # posts
#    (r'^post/', include('posts.urls')),
#    (r'^posts/', simple.redirect_to, {'url': '/post/list/'}),
#    (r'^archives?/', simple.redirect_to, {'url': '/post/list/'}),
#    
#    # feeds
#    (r'^(?:feeds?|rss|atom)/$', simple.redirect_to, {'url': '/feed/list/'}),
#    (r'^feed/', include('feeds.urls')),
#    
#    # contact
#    (r'^contact/$', 'contacts.views.contact'),
#    (r'^contact/thanks/$', 'contacts.views.thanks'),
#    #search
#    (r'^search/$', 'books.views.search'),
#    # admin:
#    (r'^admin/', include('django.contrib.admin.urls')),
##    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    #media
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': settings.STATIC_PATH,
         'show_indexes': True}),
)
